﻿using SuperJoe.Framework.Ioc;
using SuperJoe.Framework.UnitOfWorkSql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WWX.Admin.BLL
{
    public abstract class BaseBLL
    {
        protected IUnitOfWork uow = null;

        protected BaseBLL()
        {
            uow = IocManager.Container.Resolve<IUnitOfWork>();
        }
    }

    public abstract class BaseBLL<TDAL> : BaseBLL where TDAL : class
    {
        protected TDAL dal = null;

        protected BaseBLL()
        {
            this.dal = this.uow.ResolveDAL<TDAL>();
        }
    }
}
